FROM registry.cn-shenzhen.aliyuncs.com/edana/atlassian-agent:1.3.1

ENV JVM_MINIMUM_MEMORY=512m
ENV JVM_MAXIMUM_MEMORY=2048m
ENV PROXY_ENABLED=false
ENV PROXY_SCHEME=
ENV PROXY_NAME=
ENV PROXY_PORT=


WORKDIR ${ATLASSIAN_INSTALL_DIR}

ADD atlassian-jira-software-8.13.11.tar.gz .
RUN mv atlassian-jira-software-8.13.11-standalone jira; \
        mkdir -p "${ATLASSIAN_HOME}/jira"; \
        echo  "\njira.home=${ATLASSIAN_HOME}/jira" > ${ATLASSIAN_INSTALL_DIR}/jira/atlassian-jira/WEB-INF/classes/jira-application.properties;

COPY conf conf
COPY jira-init.sh /docker-entrypoint-init.d

EXPOSE 8080

CMD ["./jira/bin/start-jira.sh", "-fg"]
